import java.util.Scanner;

public class Exer6_2 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.println("输入王菲的语文成绩：");
        double score1=input.nextDouble();
        System.out.println("输入王菲的数学成绩：");
        double score2=input.nextDouble();
        System.out.println("输入王菲的英语成绩：");
        double score3=input.nextDouble();
        double sum=score1+score2+score3;
        double avg=(score1+score2+score3)/3;
        System.out.println("王菲的总分是："+sum+"\n王菲的平均分是："+avg);
    }
}
